package edu.westga.cs3152.wordmojo;

public class Letter extends TransparentButton {

	private static final long serialVersionUID = -816790899590699236L;
	private char letter = '@';
	private boolean onBoard = true;
	private boolean movable = true;
	
	public Letter(){
		super();
	}
	
	public Letter(char letter){
		setLetter(letter);
	}

	public void setLetter(char letter) {
		if(letter > 63 && letter < 91){
			this.letter = letter;
			setName("" + letter);
		}
	}

	public char getLetter() {
		return letter;
	}
	
	public boolean isOnBoard() {
		return onBoard;
	}

	public void setOnBoard(boolean onBoard) {
		this.onBoard = onBoard;
	}
	
	public boolean isMovable() {
		return movable;
	}

	public void setMovable(boolean movable) {
		this.movable = movable;
	}
}
